POV-Ray : Newsgroups : povray.newusers : transmit question : Re: transmit question Server Time
30 Jul 2024 16:25:18 EDT (-0400)
  Re: transmit question  
From: Christopher James Huff
Date: 31 Jan 2004 12:04:39
Message: <cjameshuff-31C731.12044131012004@news.povray.org>
In article <401b1c0a$1@news.povray.org>,
 "Dan P" <dan### [at] yahoocom> wrote:

> Actually, I'm going to download the code and look at that one this weekend.
> I don't expect that to be hard to do.

It's a bit more difficult than you seem to think. Mainly because there 
are so many different objects. A sphere has a radius and center, but you 
can't get those from a box. To work this into the existing parser, you 
would have to write special cases for every object, pigment type, 
pattern, etc, etc, etc...

A better option might be a framework written in an object oriented 
language that overlays the POV language. I have been working on such a 
framework for Sapphire, my own experimental language. Because everything 
is just a language object until it's converted into a form POV can 
understand, you don't have to have special cases for every little thing. 
If an object has a radius member, you can access it...doesn't matter if 
its a sphere or cylinder, and there's no special code just for handling 
the radius member.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.